﻿<UserControl x:Class="PapnKukn.Silverlight.SilverKnight.Page"
    xmlns="http://schemas.microsoft.com/client/2007" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:uc="clr-namespace:PapnKukn.Silverlight.SilverKnight">
    <Grid x:Name="LayoutRoot">
        <Grid.RenderTransform>
            <ScaleTransform ScaleX="1.0" ScaleY="1.0" />
        </Grid.RenderTransform>
        <Canvas Margin="20" Background="{StaticResource BackgroundBrush}" VerticalAlignment="Top" HorizontalAlignment="Left">
            <StackPanel Orientation="Horizontal">
                <uc:Board x:Name="ucBoard" GameOver="ucBoard_GameOver" />
                <uc:Score x:Name="ucScore" Margin="20,0,0,0" />
            </StackPanel>
            <Button x:Name="btnNew" Content="New game" Margin="250,127,0,0" Width="70" VerticalAlignment="Top" Background="{StaticResource LightBrush}" BorderBrush="{StaticResource DarkBrush}" Cursor="Hand" Click="btnNew_Click"/>
        </Canvas>
        <uc:Modal x:Name="ucModal" RefreshScoreRequest="ucModal_RefreshScoreRequest" Visibility="Collapsed" />
    </Grid>
</UserControl>
